/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package eypweb_bsc;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 *
 * @author Kohalmi Istvan
 */

// ertekpapirokat megvalosito osztaly
public class Securities {
    // azonosito
    private int id;
    // nemzetkozi azonosito
    private StringProperty isin;
    // megnevezes
    private StringProperty name;
    // eszkozcsoport
    private StringProperty instrument;
    // befektetes csoport
    private StringProperty investment;
    // devizanem
    private StringProperty currency;
    // alapcimlet
    private StringProperty denomination;
    // 71OJ kategoria
    private StringProperty tioj;
    // 71OJ_C kategoria
    private StringProperty tioj_c;
    // 71OK kategoria
    private StringProperty tiok;
    // lejarat ideje
    private StringProperty expiry;
    // hatalytol
    private StringProperty startDate;
    // hatalyig
    private StringProperty endDate;
    // elszamolas alapja
    private StringProperty accountBase;
    // modositas flag
    private boolean modified;

    public Securities() {
        modified = false;
    }

    public boolean getModified(){
        return modified;
    }
    
    public void setModified(){
        modified = true;
    }
    
    public void setID(int i){
        id=i;
    }
    
    public int getID(){
        return id;
    }
    
    public StringProperty nameProperty() {
        if (name == null) {
            name = new SimpleStringProperty(this, "name");
        }
        return name;
    }

    public void setName(String value) {
        nameProperty().set(value);
    }

    public String getName() {
        return nameProperty().get();
    }
    
    public StringProperty isinProperty() {
        if (isin == null) {
            isin = new SimpleStringProperty(this, "isin");
        }
        return isin;
    }

    public void setISIN(String value) {
        isinProperty().set(value);
    }

    public String getISIN() {
        return isinProperty().get();
    }
    
    public StringProperty instrumentProperty() {
        if (instrument == null) {
            instrument = new SimpleStringProperty(this, "instrument");
        }
        return instrument;
    }

    public void setInstrument(String value) {
        instrumentProperty().set(value);
    }

    public String getInstrument() {
        return instrumentProperty().get();
    }
    
    public StringProperty investmentProperty() {
        if (investment == null) {
            investment = new SimpleStringProperty(this, "investment");
        }
        return investment;
    }

    public void setInvestment(String value) {
        investmentProperty().set(value);
    }

    public String getInvestment() {
        return investmentProperty().get();
    }
    
    public StringProperty currencyProperty() {
        if (currency == null) {
            currency = new SimpleStringProperty(this, "currency");
        }
        return currency;
    }

    public void setCurrency(String value) {
        currencyProperty().set(value);
    }

    public String getCurrency() {
        return currencyProperty().get();
    }
    
    public StringProperty denominationProperty() {
        if (denomination == null) {
            denomination = new SimpleStringProperty(this, "denomination");
        }
        return denomination;
    }

    public void setDenomination(String value) {
        denominationProperty().set(value);
    }

    public String getDenomination() {
        return denominationProperty().get();
    }
    
    public StringProperty tiojProperty() {
        if (tioj == null) {
            tioj = new SimpleStringProperty(this, "tioj");
        }
        return tioj;
    }

    public void setTIOJ(String value) {
        tiojProperty().set(value);
    }

    public String getTIOJ() {
        return tiojProperty().get();
    }

    public StringProperty tioj_cProperty() {
        if (tioj_c == null) {
            tioj_c = new SimpleStringProperty(this, "tioj_c");
        }
        return tioj_c;
    }

    public void setTIOJ_C(String value) {
        tioj_cProperty().set(value);
    }

    public String getTIOJ_C() {
        return tioj_cProperty().get();
    }
    
    public StringProperty tiokProperty() {
        if (tiok == null) {
            tiok = new SimpleStringProperty(this, "tiok");
        }
        return tiok;
    }

    public void setTIOK(String value) {
        tiokProperty().set(value);
    }

    public String getTIOK() {
        return tiokProperty().get();
    }
    
    public StringProperty expiryProperty() {
        if (expiry == null) {
            expiry = new SimpleStringProperty(this, "expiry");
        }
        return expiry;
    }

    public void setExpiry(String value) {
        expiryProperty().set(value);
    }

    public String getExpiry() {
        return expiryProperty().get();
    }
    
    public StringProperty startDateProperty() {
        if (startDate == null) {
            startDate = new SimpleStringProperty(this, "startDate");
        }
        return startDate;
    }

    public void setStartDate(String value) {
        startDateProperty().set(value);
    }

    public String getStartDate() {
        return startDateProperty().get();
    }

    public StringProperty endDateProperty() {
        if (endDate == null) {
            endDate = new SimpleStringProperty(this, "endDate");
        }
        return endDate;
    }

    public void setEndDate(String value) {
        endDateProperty().set(value);
    }

    public String getEndDate() {
        return endDateProperty().get();
    }
    
    public StringProperty accountBaseProperty(){
        if (accountBase == null)
        {
            accountBase =new SimpleStringProperty("accountBase");
        }
        return accountBase;
    }
    
    public void setAccountBase(String value)
    {
        accountBaseProperty().set(value);
    }
    
    public String getAccountBase()
    {
        return accountBaseProperty().get();
    }
}
